package com.example.demo.entity;

import java.io.Serializable;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Objects;

/**
     * (Oldman)实体类
     *
     * @author zengdh.asiainfo.com
     * @version 1.0.0
     * @date 2021-12-13 17:32:16
     */
public class OldMan implements Serializable {
        private static final long serialVersionUID = -25948706495055258L;

        private Integer oid;

        private String oname;

        private String osex;
        /**
         * 民族
         */
        private String onation;

        private String oimg;

        private String oage;

        private Date obirth;

        private String otel;
        /**
         * 紧急联系人
         */
        private String oec;

        private String oectel;

        private String oaddr;

        private String ocardnum;

    public String getOcardnum() {
        return ocardnum;
    }

    public String getOaddr() {
        return oaddr;
    }

    public void setOaddr(String oaddr) {
        this.oaddr = oaddr;
    }

    public void setOcardnum(String ocardnum) {
        this.ocardnum = ocardnum;
    }

    /**
         * 慢性病
         */
        private String ocd;
        /**
         * 失能情况
         */
        private String odc;
        /**
         * 残疾情况
         */
        private String odisability;
        /**
         * 服务类型
         */
        private String ost;
        /**
         * 服务点
         */
        private String osp;
        /**
         * 服务状态
         */
        private String oss;



    /**
     * 床位
     * @return
     */
    private String obed ;

    private Integer obid;

    public Integer getOid() {
            return oid;
        }

        public void setOid(Integer oid) {
            this.oid = oid;
        }

        public String getOname() {
            return oname;
        }

        public void setOname(String oname) {
            this.oname = oname;
        }

    public String getObed() {
        return obed;
    }

    public void setObed(String obed) {
        this.obed = obed;
    }

    public Integer getObid() {
        return obid;
    }

    public void setObid(Integer obid) {
        this.obid = obid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OldMan oldMan = (OldMan) o;
        return Objects.equals(oid, oldMan.oid) && Objects.equals(oname, oldMan.oname) && Objects.equals(osex, oldMan.osex) && Objects.equals(onation, oldMan.onation) && Objects.equals(oimg, oldMan.oimg) && Objects.equals(oage, oldMan.oage) && Objects.equals(obirth, oldMan.obirth) && Objects.equals(otel, oldMan.otel) && Objects.equals(oec, oldMan.oec) && Objects.equals(oectel, oldMan.oectel) && Objects.equals(oaddr, oldMan.oaddr) && Objects.equals(ocardnum, oldMan.ocardnum) && Objects.equals(ocd, oldMan.ocd) && Objects.equals(odc, oldMan.odc) && Objects.equals(odisability, oldMan.odisability) && Objects.equals(ost, oldMan.ost) && Objects.equals(osp, oldMan.osp) && Objects.equals(oss, oldMan.oss) && Objects.equals(obed, oldMan.obed) && Objects.equals(obid, oldMan.obid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(oid, oname, osex, onation, oimg, oage, obirth, otel, oec, oectel, oaddr, ocardnum, ocd, odc, odisability, ost, osp, oss, obed, obid);
    }

    @Override
    public String toString() {
        return "OldMan{" +
                "oid=" + oid +
                ", oname='" + oname + '\'' +
                ", osex='" + osex + '\'' +
                ", onation='" + onation + '\'' +
                ", oimg='" + oimg + '\'' +
                ", oage='" + oage + '\'' +
                ", obirth=" + obirth +
                ", otel='" + otel + '\'' +
                ", oec='" + oec + '\'' +
                ", oectel='" + oectel + '\'' +
                ", oaddr='" + oaddr + '\'' +
                ", ocardnum='" + ocardnum + '\'' +
                ", ocd='" + ocd + '\'' +
                ", odc='" + odc + '\'' +
                ", odisability='" + odisability + '\'' +
                ", ost='" + ost + '\'' +
                ", osp='" + osp + '\'' +
                ", oss='" + oss + '\'' +
                ", obed='" + obed + '\'' +
                ", obid=" + obid +
                '}';
    }

    public OldMan(Integer oid, String oname, String osex, String onation, String oimg, String oage, Date obirth, String otel, String oec, String oectel, String oaddr, String ocardnum, String ocd, String odc, String odisability, String ost, String osp, String oss, String obed, Integer obid) {
        this.oid = oid;
        this.oname = oname;
        this.osex = osex;
        this.onation = onation;
        this.oimg = oimg;
        this.oage = oage;
        this.obirth = obirth;
        this.otel = otel;
        this.oec = oec;
        this.oectel = oectel;
        this.oaddr = oaddr;
        this.ocardnum = ocardnum;
        this.ocd = ocd;
        this.odc = odc;
        this.odisability = odisability;
        this.ost = ost;
        this.osp = osp;
        this.oss = oss;
        this.obed = obed;
        this.obid = obid;
    }

    public String getOsex() {
            return osex;
        }

        public void setOsex(String osex) {
            this.osex = osex;
        }

        public String getOnation() {
            return onation;
        }

        public void setOnation(String onation) {
            this.onation = onation;
        }

        public String getOimg() {
            return oimg;
        }

        public void setOimg(String oimg) {
            this.oimg = oimg;
        }

        public String getOage() {
            return oage;
        }

        public void setOage(String oage) {
            this.oage = oage;
        }

        public Date getObirth() {
            return obirth;
        }

        public void setObirth(Date obirth) throws ParseException {
            /*SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
            String birth = simpleDateFormat.format(obirth);*/
            this.obirth = obirth;
        }

        public String getOtel() {
            return otel;
        }

        public void setOtel(String otel) {
            this.otel = otel;
        }

        public String getOec() {
            return oec;
        }

        public void setOec(String oec) {
            this.oec = oec;
        }

        public String getOectel() {
            return oectel;
        }

        public void setOectel(String oectel) {
            this.oectel = oectel;
        }

        public String getOcd() {
            return ocd;
        }

        public void setOcd(String ocd) {
            this.ocd = ocd;
        }

        public String getOdc() {
            return odc;
        }

        public void setOdc(String odc) {
            this.odc = odc;
        }

        public String getOdisability() {
            return odisability;
        }

        public void setOdisability(String odisability) {
            this.odisability = odisability;
        }

        public String getOst() {
            return ost;
        }

        public void setOst(String ost) {
            this.ost = ost;
        }

        public String getOsp() {
            return osp;
        }

        public void setOsp(String osp) {
            this.osp = osp;
        }

        public String getOss() {
            return oss;
        }

        public void setOss(String oss) {
            this.oss = oss;
        }



    public OldMan() {
    }

    public OldMan(Integer oid, String oname, String osex, String onation, String oimg, String oage, Date obirth, String otel, String oec, String oectel, String oaddr, String ocardnum, String ocd, String odc, String odisability, String ost, String osp, String oss, String obed ) {
        this.oid = oid;
        this.oname = oname;
        this.osex = osex;
        this.onation = onation;
        this.oimg = oimg;
        this.oage = oage;
        this.obirth = obirth;
        this.otel = otel;
        this.oec = oec;
        this.oectel = oectel;
        this.oaddr = oaddr;
        this.ocardnum = ocardnum;
        this.ocd = ocd;
        this.odc = odc;
        this.odisability = odisability;
        this.ost = ost;
        this.osp = osp;
        this.oss = oss;
        this.obed  = obed ;
    }
}
